﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ch05
{
    class Class10
    {
        static void Main(string[] args)
        {
            //定义二维数组的同时赋初始值
            /*
            int[][] nums = {
                new int[4]{11,12,13,14},
                new int[5]{21,22,23,24,25},
                new int[3]{31,32,33}
            };
            */
            int[][] nums = new int[3][];
            nums[0] = new int[4] { 11,12,13,14};
            nums[1] = new int[5] { 21, 22, 23, 24, 25 };
            nums[2] = new int[3] { 31, 32, 33 };

            //Console.WriteLine(nums[1,2]);
            for (int i = 0; i < nums.Length; i++)
            {
                for (int j = 0; j < nums[i].Length; j++)
                {
                    Console.Write(nums[i][j] + "\t");
                }
                Console.WriteLine();
            }

        }
    }
}
